package com.astro.backend.business.dao;

import org.apache.commons.lang.StringUtils;

public class Bill {
	private String description;
	private String period;
	private String amount;
	private String total;
	private String star;
	private String status ; //added by ntchung 20150423 for Proration Details tab.
	private String startDate;
	private String endDate;
	private String gstRM;
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getPeriod() {
		return StringUtils.isBlank(period)? "": period;
	}
	public void setPeriod(String period) {
		this.period = period;
	}
	public String getAmount() {
		return StringUtils.isBlank(amount)? "0": amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getTotal() {
		return total;
	}
	public void setTotal(String total) {
		this.total = total;
	}
	public String getSmartCardNoShort() {
		return (description != null)?description.replaceAll(" ", ""): "";
	}
	public String getStar() {
		return StringUtils.isBlank(star)? "": star;
	}
	public void setStar(String star) {
		this.star = star;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getGstRM() {
		return StringUtils.isBlank(gstRM)? "-": gstRM;
	}
	public void setGstRM(String gstRM) {
		this.gstRM = gstRM;
	}
}
